#include <io.h>
#include <stdio.h>
#include <alloc.h>
void main(int argc, char *argv[])
{
int f1,f2,f3,head[4],m,n,i,j;
char comm[20];
float *s1, *s2, *diff;

f1=open(argv[1],1); f2=open(argv[2],1);
f3=open(argv[3],770,128);
_read(f1,head,8);
m=head[0]; n=head[1]; 
lseek(f2,8,SEEK_SET);
head[3]=sprintf(comm,"{%s-%s}",argv[1],argv[2]);
_write(f3,head,8);
s1=malloc(4U*n); s2=malloc(4U*n); diff=malloc(4U*n);
for(i=0;i<m;i++){
  _read(f1,s1,4U*n); _read(f2,s2,4U*n);
  for(j=0;j<n;j++) diff[j]=s1[j]-s2[j];
  _write(f3,diff,4U*n);
                }
_write(f3,comm,head[3]);
}                